package com.hisense.hiioc.hismartplate.mapper;

import com.hisense.hiioc.hismartplate.entity.table.FaceEventEntity;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Map;

/**
 * @Author: almo
 * @Date: 2018/12/18 下午3:55
 * @Version 1.0
 */
public interface FaceCloudEventMapper extends Mapper<FaceEventEntity> {

    int updateFaceIdCloudEvent(FaceEventEntity entity);

    int insertFaceInClientEvent(FaceEventEntity entity);

    int updateFaceOutClientEvent(FaceEventEntity entity);

    FaceEventEntity getNewestFaceEventByDevice(@Param("deviceID") String DeviceID);

    int updateByMap(Map<String, Object> map);
}
